
//Thread类的五种写法
//1、继承 Thread类
class My_Thread extends Thread {
    @Override
    public void run() {
        System.out.println("线程启动");
    }
}
public class Demo9 {
    public static void main(String[] args) {
        My_Thread myThread = new My_Thread();
        myThread.start();
    }
}
